package org.microservice.common.util.constant;

/**
 * @author lengleng
 * @date 2017/10/29
 */
public interface CommonConstant {
    /**
     * token请求头名称
     */
    String REQ_HEADER = "Authorization";

    /**
     * token分割符
     */
    String TOKEN_SPLIT = "Bearer ";

    String ADMIN_NAME="admin";


    /**
     * 删除
     */
    String STATUS_DEL = "1";

    /**
     * 不可用
     */
    boolean DISABLED = false;

    /**
     * 可用
     */
    boolean ENABLED = true;

    /**
     * 正常
     */
    String STATUS_NORMAL = "0";

    /**
     * 锁定
     */
    String STATUS_LOCK = "9";

    /**
     * 目录
     */
    int  DIRECTORY = 0;

    /**
     * 菜单
     */
    int MENU = 1;

    /**
     * 按钮
     */
    int BUTTON = 2;

    /**
     * 删除标记
     */
    String DEL_FLAG = "del_flag";

    /**
     * 编码
     */
    String UTF8 = "UTF-8";

    /**
     * JSON 资源
     */
    String CONTENT_TYPE = "application/json; charset=utf-8";

    /**
     * 阿里大鱼
     */
    String ALIYUN_SMS = "aliyun_sms";

    public enum CloudType{

        QINIU("qiniu");

        private String value;

        CloudType(String type){
            this.value = type;
        }

        public String getValue() {
            return value;
        }
    }

    public enum ScheduleStatus {
        /**
         * 正常
         */
        NORMAL(1),
        /**
         * 暂停
         */
        PAUSE(0);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public enum LogType {
        /**
         * 系统日志
         */
        SYS("sys"),
        /**
         * job日志
         */
        JOB("job");



        private String value;

        LogType(String type){
            this.value = type;
        }


        public String getValue() {
            return value;
        }
    }
}
